package com.example.k8s.hello.bean.sys.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;


/**
 * 系统日志
 *
 * @author Mark sunlightcs@gmail.com
 */
@Data
@Accessors(chain = true)
@TableName("sys_log")
@Schema(description = "系统日志")
public class SysLogEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	@TableId
	private Long id;

	@Schema(description = "学号")
	private String username;

	@Schema(description = "用户操作")
	private String operation;

	@Schema(description = "请求方法")
	private String method;

	@Schema(description = "请求参数")
	private String params;

	@Schema(description = "执行时长(毫秒)")
	private Long time;

	@Schema(description = "IP地址")
	private String ip;

	@Schema(description = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

}
